Your packetizer may be called with commands to flush its input buffer or reset for a new session at any time. This normally happens at the end of a sequence or when a transmission is interrupted.
The flush command is given when your packetizer needs to finish any pending work.
pascal ComponentResult RTPMPFlush(RTPMediaPacketizer rtpm,
SInt32 inFlags, SInt32 *outFlags);
If your packetizer has not yet written all the data from the last RTPMPSetSampleData call to the selected packet builder, do it now. inFlags is currently always 0. Write any pending data, flush your input buffer, and set outFlags to 0.
The reset command is given when your packetizer needs to stop packetizing, reset its state, and prepare for new orders.
pascal ComponentResult RTPMPReset(RTPMediaPacketizer rtpm,
SInt32 inFlags);
inFlags is currently always 0.
Flush your input buffer. Do not send any buffered data, because in all probability there is no connection for you to send on. Reset your packetizer's state; it should be the same as if it had just been opened and initialized.
| Previous | Chapter Contents | Chapter Top | Next |